export default {
  'POST /admin/token-list': (req,res) => {
    let { limit, page } = req.query;
    limit = +limit;
    page = +page;
    const pageIndex = (page-1) * limit;
    res.json({
      code: 200,
      data: {
        totalCount: 10,
        list: [
          {
            "id": 1,
            "name": "BTC",
            "symbol": "BTC",
            "logo": "https://img.bishijie.com/userlogo-5ff559959d8c3",
            "type": 0, // 0 普通代币 1 合约代币
            "tokenAddr": "0x2b591e99afe9f32eaa6214f7b7629768c40eeb39" // 合约地址
          },
          {
            "id": 2,
            "name": "MKR",
            "symbol": "MKR",
            "logo": "https://img.bishijie.com/userlogo-5ff559959d8c3",
            "type": 1,
            "tokenAddr": "0x9f8f72aa9304c8b593d555f12ef6589cc3a579a2"
          },
          {
            "id": 3,
            "name": "HEX",
            "symbol": "HEX",
            "logo": "https://img.bishijie.com/userlogo-5ff559959d8c3",
            "type": 1,
            "tokenAddr": "0x2b591e99afe9f32eaa6214f7b7629768c40eeb39"
          }
        ]
      }
    })
  },
  'POST /admin/add-token': (req,res) => {
    setTimeout(() => {
      res.json({
        "code": 200,
        "message": "OK",
        "data": true
      })
    },500)
  },
  'POST /admin/update-token/:id': (req,res) => {
    setTimeout(() => {
      res.json({
        "code": 200,
        "message": "OK",
        "data": true
      })
    },500)
  },
  'POST /admin/delete-token/:id': (req,res) => {
    setTimeout(() => {
      res.json({
        "code": 200,
        "message": "OK",
        "data": true
      })
    },500)
  }
}
